#include <stdio.h>

class A
{
public:
       int i;
       A();
       void f();
};

A::A()
{
    i=0;
    printf("A::A()--this=%p\n",this);
}

void A::f()
{
    this->i=20;
    printf("A::f()--&i=%p\n",&i);
    printf("this =%p\n", this);
}

int main()
{
    A a;
    A aa;
    a.i=10;
    printf("&a=%p\n",&a);
    printf("&a.i=%p\n",&(a.i));
    a.f();
    printf("&aa=%p\n",&aa);
    aa.f();

    return 0;
}

